<?php

namespace haibao\weixin\model\data;

class WeixinArticle extends \haibao\weixin\model\data\Base{
   
    /**
     *来源：1为文章，2图集
     */
    const OBJECT_TYPE_ARTICLE = 1;
    const OBJECT_TYPE_IMAGE_COLLECTIVE = 2;
    
    /**
     * 1正常2删除
     */
    const STATUS_ENABLE = 1;
    const STATUS_DISABLE = 2;
    
    /**
     * 微信ID
     */
    public $WeixinInfoId;
    
    /**
     * PC文章ID
     */
    public $ArticleId;
    
    /**
     * 标题
     */
    public $Title;
    
    /**
     * 内容
     */
    public $Content;
    
    /**
     * 微信图文消息ID
     */
    public $MsgId;
    
    /**
     * 消息次序索引
     */
    public $MsgIndexId = 0;
    
    /**
     * 详情页面阅读人数
     */
    public $ReadUserCount = 0;
    
    /**
     * 详情页阅读次数
     */
    public $ReadCount = 0;
    
    /**
     * 原文页阅读人数
     */
    public $ReadOriUserCount = 0;
    
    /**
     * 原文页阅读次数
     */
    public $ReadOriCount = 0;
    
    /**
     * 分享人数
     */
    public $ShareUserCount = 0;
    
    /**
     * 分享次数
     */
    public $ShareCount = 0;
    
    /**
     * 收藏人数
     */
    public $FavUserCount = 0;
    
    /**
     * 收藏次数
     */
    public $FavCount = 0;
    
    /**
     *来源：1为文章，2图集 
     */
    public $ObjectType;
    
    /**
     * 创建时间
     */
    public $CreateTime;
    
    /**
     * 后台用户ID
     */
    public $CreateBy;
 
    /**
     * 1正常2删除
     */
    public $Status;
    
    public function __construct() {
        parent::__construct();
        $this->intField('WeixinInfoId','WeixinInfoId',true);
        $this->intField('ArticleId','ArticleId',true);
        $this->stringField('Title','Title',true);
        $this->stringField('Content','Content',true);
        $this->stringField('MsgId','MsgId');
        $this->intField('MsgIndexId','MsgIndexId');
        $this->intField('ReadUserCount','ReadUserCount');
        $this->intField('ReadCount','ReadCount');
        $this->intField('ReadOriUserCount','ReadOriUserCount');
        $this->intField('ReadOriCount','ReadOriCount');
        $this->intField('ShareUserCount','ShareUserCount');
        $this->intField('ShareCount','ShareCount');
        $this->intField('FavUserCount','FavUserCount');
        $this->intField('FavCount','FavCount');
        $this->intField('ObjectType','ObjectType');
        $this->dateField('CreateTime','CreateTime',true);
        $this->intField('CreateBy','CreateBy',true);
        $this->intField('Status','Status');
        
        $this->setTableName('WeixinArticle');
    }
}
